#include "TcpServer.h"

TcpServer::TcpServer(std::string& ip,uint16_t& port)
{
    acceptor_ = new Acceptor(&loop_,ip,port);
}

void TcpServer::start()
{
    loop_.run();
}
TcpServer::~TcpServer()
{
    delete acceptor_;
}